package com.xinruke.hostels.dailymanage.service;

import com.xinruke.hostels.common.vo.ResultVO;
import com.xinruke.hostels.common.vo.query.RowsDataVO;
import com.xinruke.hostels.dailymanage.interfaces.dto.*;
import org.springframework.transaction.annotation.Transactional;

public interface CommentService {
    RowsDataVO<CommentInfoQueryResultDTO> list(CommentInfoQueryDto commentInfoQueryDto);

    ResultVO<String> submit(CommentSubmitInfoDto params);

    ResultVO<CommentDetailQueryResultDTO> detail(CommentDetailQueryDTO params);

    ResultVO<String> del(CommentDelQueryDTO params);

    ResultVO<String> audit(CommentAuditQueryDTO params);

    @Transactional
    ResultVO<String> modify(CommentModifyQueryDTO params);

    CommentAverageResultDto average(Integer jiudianId);

    /**
     * 多条件查询平台全部评论列表
     * @param commentAllInfoQueryDTO
     * @Author: ChenXiangpeng
     * @Date: 2019/7/27 17:01
     * @return
     */
    ResultVO<RowsDataVO<CommentInfoQueryResultDTO>> allComment(CommentAllInfoQueryDTO commentAllInfoQueryDTO);

    /**
     * 根据评论ID查询详情，不需要屏蔽敏感词
     * @param params
     * @Author: ChenXiangpeng
     * @Date: 2019/7/30 18:18
     * @return
     */
    ResultVO<CommentDetailQueryResultDTO> detailById(CommentDetailQueryDTO params);
}
